inherited FormRegiao: TFormRegiao
  Tag = 14
  Left = 248
  Top = 212
  Caption = 'Regi'#245'es'
  ClientWidth = 620
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 13
  inherited Splitter1: TSplitter
    Left = 217
  end
  inherited pnlSelec: TPanel
    Width = 217
    inherited Splitter3: TSplitter
      Top = 65
      Width = 215
    end
    inherited pnlBusca: TGroupBox
      Width = 215
      Height = 64
      inherited lblCriterio: TLabel
        Width = 80
        Caption = 'Nome da Regiao'
      end
    end
    inherited dbgRelacao: TSMDBGrid
      Top = 68
      Width = 215
      Height = 356
      ColCount = 2
      Columns = <
        item
          Expanded = False
          FieldName = 'REGIAO_DESCRICAO'
          Width = 178
          Visible = True
          FooterType = ftCustom
        end>
    end
  end
  inherited Panel1: TPanel
    Left = 220
    Width = 400
    inherited Splitter2: TSplitter
      Top = 61
      Width = 398
    end
    object Label1: TLabel [1]
      Left = 7
      Top = 5
      Width = 51
      Height = 13
      Caption = 'Descri'#231#227'o:'
    end
    object Label2: TLabel [2]
      Left = 7
      Top = 21
      Width = 29
      Height = 13
      Caption = 'Login:'
    end
    object DBText2: TDBText [3]
      Left = 39
      Top = 22
      Width = 50
      Height = 13
      AutoSize = True
      DataField = 'USUARIO_LOGIN'
      DataSource = dsDados
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clBlack
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = [fsBold]
      ParentFont = False
    end
    object DBText3: TDBText [4]
      Left = 95
      Top = 38
      Width = 50
      Height = 13
      AutoSize = True
      DataField = 'Usuario'
      DataSource = dsDados
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clBlack
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = [fsBold]
      ParentFont = False
    end
    object Label3: TLabel [5]
      Left = 7
      Top = 37
      Width = 83
      Height = 13
      Caption = 'Nome do usu'#225'rio:'
    end
    object DBText1: TDBText [6]
      Left = 63
      Top = 6
      Width = 50
      Height = 13
      AutoSize = True
      DataField = 'REGIAO_DESCRICAO'
      DataSource = dsDados
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clBlack
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = [fsBold]
      ParentFont = False
    end
    inherited PageControl1: TPageControl
      Top = 64
      Width = 398
      Height = 360
      ActivePage = TabSheet1
      object TabSheet1: TTabSheet
        Caption = 'Postos'
        object SMDBGrid1: TSMDBGrid
          Left = 0
          Top = 0
          Width = 390
          Height = 332
          Align = alClient
          Color = clWhite
          Ctl3D = False
          DataSource = dsFranGrupo
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -11
          Font.Name = 'MS Sans Serif'
          Font.Style = []
          Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgTabs, dgRowSelect, dgAlwaysShowSelection, dgConfirmDelete, dgCancelOnExit]
          ParentCtl3D = False
          ParentFont = False
          ReadOnly = True
          TabOrder = 0
          TitleFont.Charset = DEFAULT_CHARSET
          TitleFont.Color = clBlack
          TitleFont.Height = -11
          TitleFont.Name = 'MS Sans Serif'
          TitleFont.Style = [fsBold]
          Flat = True
          BandsFont.Charset = DEFAULT_CHARSET
          BandsFont.Color = clWindowText
          BandsFont.Height = -11
          BandsFont.Name = 'MS Sans Serif'
          BandsFont.Style = []
          Groupings = <>
          GridStyle.Style = gsSoftBrick
          GridStyle.OddColor = 14675694
          GridStyle.EvenColor = 13493476
          TitleHeight.PixelCount = 24
          FooterColor = clBtnFace
          ExOptions = [eoBooleanAsCheckBox, eoDisableDelete, eoDisableInsert, eoDrawGraphicField, eoENTERlikeTAB, eoKeepSelection, eoRowNumber, eoRowSizing, eoSelectedTitle, eoShowGlyphs, eoShowLookup, eoShowRecNo, eoStandardPopup, eoBLOBEditor]
          RegistryKey = 'Software\Scalabium'
          RegistrySection = 'SMDBGrid'
          WidthOfIndicator = 11
          DefaultRowHeight = 16
          ScrollBars = ssHorizontal
          ColCount = 3
          RowCount = 2
          Columns = <
            item
              Expanded = False
              FieldName = 'FRANQUIA_CODIGO'
              Width = 67
              Visible = True
              FooterType = ftCustom
            end
            item
              ButtonStyle = cbsNone
              Expanded = False
              FieldName = 'Franquia'
              Width = 287
              Visible = True
              FooterType = ftCustom
            end>
        end
      end
    end
  end
  inherited ToolBar1: TToolBar
    Width = 620
  end
  inherited pnCabecalho: TPanel
    Width = 620
    inherited Image1: TImage
      Width = 620
    end
  end
  inherited qryDados: TADOQuery
    BeforeOpen = qryDadosBeforeOpen
    BeforeClose = qryDadosBeforeClose
    AfterClose = qryDadosAfterClose
    Parameters = <
      item
        Name = 'CRITERIO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 50
        Value = '%'
      end>
    SQL.Strings = (
      'SELECT* FROM REGIAO '
      'WHERE REGIAO_DESCRICAO LIKE :CRITERIO')
    object qryDadosREGIAO_DESCRICAO: TStringField
      DisplayLabel = 'Regi'#227'o'
      FieldName = 'REGIAO_DESCRICAO'
      Size = 50
    end
    object qryDadosREGIAO_CODIGO: TWordField
      FieldName = 'REGIAO_CODIGO'
    end
    object qryDadosUSUARIO_LOGIN: TStringField
      FieldName = 'USUARIO_LOGIN'
      Size = 10
    end
    object qryDadosUsuario: TStringField
      FieldKind = fkLookup
      FieldName = 'Usuario'
      LookupDataSet = qryUsuario
      LookupKeyFields = 'USUARIO_LOGIN'
      LookupResultField = 'USUARIO_NOME'
      KeyFields = 'USUARIO_LOGIN'
      LookupCache = True
      Size = 50
      Lookup = True
    end
  end
  object qryUsuario: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    Parameters = <>
    SQL.Strings = (
      'SELECT * FROM USUARIO'
      'ORDER BY USUARIO_NOME')
    Left = 64
    Top = 240
    object qryUsuarioUSUARIO_LOGIN: TStringField
      FieldName = 'USUARIO_LOGIN'
      Size = 10
    end
    object qryUsuarioUSUARIO_SENHA: TVarBytesField
      FieldName = 'USUARIO_SENHA'
      Size = 128
    end
    object qryUsuarioPERFIL_CODIGO: TWordField
      FieldName = 'PERFIL_CODIGO'
    end
    object qryUsuarioUSUARIO_NOME: TStringField
      FieldName = 'USUARIO_NOME'
      Size = 50
    end
    object qryUsuarioUSUARIO_EMAIL: TStringField
      FieldName = 'USUARIO_EMAIL'
      Size = 80
    end
  end
  object dsUsuario: TDataSource
    DataSet = qryUsuario
    Left = 64
    Top = 256
  end
  object qryFranGrupo: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    BeforeOpen = qryFranGrupoBeforeOpen
    AfterInsert = qryFranGrupoAfterInsert
    AfterCancel = qryFranGrupoAfterCancel
    DataSource = dsDados
    Parameters = <
      item
        Name = 'REGIAO_CODIGO'
        DataType = ftWord
        Precision = 3
        Size = 1
        Value = Null
      end>
    SQL.Strings = (
      'SELECT * FROM FRANQUIAREGIAO '
      'WHERE REGIAO_CODIGO=:REGIAO_CODIGO')
    Left = 168
    Top = 136
    object qryFranGrupoFRANQUIA_CODIGO: TIntegerField
      DisplayLabel = 'N'#250'mero'
      FieldName = 'FRANQUIA_CODIGO'
    end
    object qryFranGrupoREGIAO: TWordField
      FieldName = 'REGIAO'
    end
    object qryFranGrupoREGIAO_CODIGO: TWordField
      FieldName = 'REGIAO_CODIGO'
    end
    object qryFranGrupoFranquia: TStringField
      DisplayLabel = 'Descri'#231#227'o'
      FieldKind = fkLookup
      FieldName = 'Franquia'
      LookupDataSet = qryFranquia
      LookupKeyFields = 'CODIGO'
      LookupResultField = 'NOME_FANTASIA'
      KeyFields = 'FRANQUIA_CODIGO'
      LookupCache = True
      Size = 50
      Lookup = True
    end
  end
  object dsFranGrupo: TDataSource
    DataSet = qryFranGrupo
    Left = 168
    Top = 152
  end
  object qryFranquia: TADOQuery
    Connection = FormPrincipal.cnRegente
    Parameters = <>
    SQL.Strings = (
      'SELECT CODIGO, NOME_FANTASIA, REGIAO FROM  FRANQUIA'
      'ORDER BY NOME_FANTASIA')
    Left = 64
    Top = 176
    object qryFranquiaCODIGO: TIntegerField
      FieldName = 'CODIGO'
    end
    object qryFranquiaNOME_FANTASIA: TStringField
      FieldName = 'NOME_FANTASIA'
      Size = 50
    end
    object qryFranquiaREGIAO: TWordField
      FieldName = 'REGIAO'
    end
  end
end
